<template>
  <div class="box">
    <!-- <div class="title">账号基本资料</div> -->

    <el-form label-position="right" label-width="60px" :model="fromData" inline>
      <el-form-item label="用户名">
        <el-input v-model="fromData.userName"></el-input>
      </el-form-item>
      <el-form-item label="姓名" label-width="100px">
        <el-input v-model="fromData.name"></el-input>
      </el-form-item>

      <el-form-item label="分部" label-width="100px">
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value">
          </el-option>
        </el-select>
        <el-input v-model="fromData.name" style="width: 150px;margin-left: 10px;"></el-input>
      </el-form-item>

      <el-form-item label="" class="ml-6">
        <el-button type="primary" plain>快速检索</el-button>
          <el-button type="primary" plain>新增分部</el-button>
      </el-form-item>
    </el-form>

    <div class="table" style="height: 600px;">
      <el-table :data="tableData" border style="width: 100%" height="100%">
        <el-table-column prop="date" label="ID" width="180">
        </el-table-column>
        <el-table-column prop="name" label="城市名称" width="250">
        </el-table-column>
        <el-table-column prop="address" label="驾校名称">
        </el-table-column>
        <el-table-column prop="address" label="操作">
          <el-button class="el-icon-delete">删除</el-button>
        </el-table-column>
      </el-table>
    </div>

    <div class="pagin">
      <el-pagination background layout="prev, pager, next" :total="1000">
      </el-pagination>
    </div>

  </div>
</template>

<script>
/**
* @author        chenRong
* @time          2023-11-03 15:03:34  星期五
* @description   
**/
export default {
  data() {
    return {
      fromData: {
        name: '',
        userName: ""
      },
      tableData: [{
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-04',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1517 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1519 弄'
      }, {
        date: '2016-05-03',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1516 弄'
        }],
      options: [{
        value: '选项1',
        label: '黄金糕'
      }, {
        value: '选项2',
        label: '双皮奶'
      }, {
        value: '选项3',
        label: '蚵仔煎'
      }, {
        value: '选项4',
        label: '龙须面'
      }, {
        value: '选项5',
        label: '北京烤鸭'
      }],
      value: ''
    }
  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
.box {
  background-color: white;
  padding: 0px;
  // height: 700px;
}

.title {
  margin-bottom: 20px;
  color: #333;
}

.pagin {
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: end;
  align-items: end;
}
</style>